﻿@model IEnumerable<TeamOPSchoolCup.Domain.POCO.Sport>
@{
    ViewBag.Title = "Index";
}

@section sport{
    <link rel="Stylesheet" href="@Url.Content("~/Content/css/Sport.css")" type="text/css" />
}

<h1 class="wrappertitel">Sports</h1>

<div id="add">
    <p id="add1">
        <a title="Click here to add one Sport" href="@Url.Action("Create", new { parentId = ViewBag.RegionId })">
            <img class="addlogo" src="@Url.Content("~/Content/images/addlogo.png")" alt="add" />
            <span>Add One</span></a>
    </p>
</div>

<table id="sportTable">
    <tr id="header">
        <th id="numberHeader"></th>
        <th>Name
        </th>
        <th>Abbreviation
        </th>
    </tr>
    @{int index = 1;}
    @foreach (var item in Model)
    {
        <tr>
            <td class="number">@index</td>
            <td class="infocell">
                @Html.ActionLink(item.Name, "Edit", new { id = item.SportId })
            </td>
            <td id="abbreviation" class="infocell">
                @Html.DisplayFor(modelItem => item.Abbreviation)
            </td>
            @{ index += 1; }
        </tr>
    }

</table>
